<template>
	<view class="content">
		首页
		<view>{{hh}}</view>
		<u-button type="primary" @tap='aa'>主要按钮</u-button>
		<u-button type="success"  @tap='getlist(123)'>成功按钮</u-button>
	</view>
	
</template>

<script>
	import {
			mapState,
			mapActions
		} from 'vuex'
	import { getpolyesteryarn } from "../../common/api.js"
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		computed: {
			...mapState(['hh'])
		},
		onLoad() {
		
		},
		methods: {
			aa(){
				console.log('11')
			},
			getlist (a){
				console.log(a);
				(async()=>{
					const res=await getpolyesteryarn()
					console.log(res,'res');
				})()
				
			}
		}
	}
</script>

<style lang="scss">
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
